//----------------------------------------------------------------------------------------
// @Project Includes
#include "includes.h"

//----------------------------------------------------------------------------------------
// @Local Macro Define in the module

//----------------------------------------------------------------------------------------
// @Local Type defines in the module

//----------------------------------------------------------------------------------------
// @Global Variables define in the module
stc_Variable_t g_stcVar;/*Global variable structure*/

//----------------------------------------------------------------------------------------
// @Prototypes of functions in the module

//========================================================================================
/**
 * @brief  srv var initialization
 * @param  none
 * @return none
 * @note   none
 */
void srv_var_init(void)
{
    memset(&g_stcVar,0x00,sizeof(stc_Variable_t));
	
		memset(&g_stccan,0x00,sizeof(stc_can_t));
	
	  g_stcVar.u16sleepWaitTime = g_stcParm.stcConfig.u16curTime;
	
    g_stcVar.bchgMosCmdCtl = true;
    g_stcVar.bdsgMosCmdCtl = true;	
    g_stcVar.bchgMosCtl = true;
    g_stcVar.bdsgMosCtl = true;
    g_stcVar.bpchgMosCtl = false;
	  g_stcVar.bpdsgMosCtl = false;
	
	  g_stcVar.u32fullChgCap = g_stcParm.stcConfig.u32fullChgCap;
	  g_stcVar.u8batteryType = g_stcParm.stcConfig.u8batteryType;	
	  g_stcVar.u8cellS = g_stcParm.stcConfig.u8cellS;	
}

// =======================================================================================
// End of file.
// =======================================================================================
